<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script src="../jquery-2.0.3_code.js" type="text/javascript"></script>
<script src="../doll_1.0.js" type="text/javascript"></script>
<script>
(function(){ 
var  
	doll = function( selector, context ) {
        return new doll.fn.init( );
    }; 	 	
doll.fn = doll.prototype = {
	constructor: doll ,
	init:function(){},
	fx:function(){alert('这是类库的一个实例化方法[fx]');}
}; 
doll.fn.init.prototype = doll.fn;
window.__doll=  doll;	
doll.fn.fx2=function(){alert('fx2');}
doll.f=	function(){alert('f');}
})()

 
 

__doll().fx2();
__doll.fn.fx2();
__doll.f()
alert(__doll.fn.init.constructor)

</script>
</head>

<body>

</body>
</html>
